package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.pro.TaskList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/24 - 18:48
 */
@Mapper
public interface TaskListMapper {
    ArrayList<TaskList> selectTaskPage(
            @Param("productionOrderId") Long productionOrderId,
            @Param("processId") Long processId,
            @Param("workflowId") Integer workflowId
    );

    int addTaskListByProductionOrderIdAndProcessId(TaskList taskList);

    int updateTaskCodeById(TaskList taskList);

    int deleteTaskListById(Long taskListId);
}
